package com.ics.web.controller.travelstar.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ics.common.annotation.Excel;
import com.ics.framework.web.domain.BaseDo;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 访客记录对象 tb_visitors_log
 *
 * @author ics
 * @date 2024-10-22
 */
@ApiModel(value = "访客记录", description = "")
@TableName("tb_visitors_log")
@Data
public class TbVisitorsLog extends BaseDo {
    private static final long serialVersionUID = 1L;

    /**
     * 访客ip
     */
    @Excel(name = "访客ip")
    private String loginIp;

    /**
     * 登录地点
     */
    @Excel(name = "登录地点")
    private String loginLocation;

    /**
     * 浏览器类型
     */
    @Excel(name = "浏览器类型")
    private String browser;

    /**
     * 操作系统
     */
    @Excel(name = "设备信息")
    private String os;


    /**
     * 访问时间
     */
    @Excel(name = "访问时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            shape = JsonFormat.Shape.STRING,
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private LocalDateTime loginDateTime;
}
